package com.itheima.pojo;

import org.springframework.stereotype.Component;

@Component
public class Student {
    private String name; //姓名
    private Integer age; //年龄
    private String gender; //性别
    private String no; //学号
    private Integer score; //分数
    private String level; //分数等级

    public Student() {
    }

    public Student(String name, Integer age, String gender, String no, Integer score) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.no = no;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", no='" + no + '\'' +
                ", score=" + score +
                ", level='" + level + '\'' +
                '}';
    }
}
